﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" CodeBehind="zzzList.aspx.cs" Inherits="BaseSRS_zzzCPRequests.List" %>

<%@ Register src="~/DynamicData/Content/GridViewPager.ascx" tagname="GridViewPager" tagprefix="asp" %>

<asp:Content ID="headContent" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DynamicDataManager ID="DynamicDataManager1" runat="server" AutoLoadForeignKeys="true">
        <DataControls>
            <asp:DataControlReference ControlID="GridView1" />
        </DataControls>
    </asp:DynamicDataManager>

    <div class="DDRequests">
        <asp:DynamicValidator runat="server" ID="GridViewValidator" ControlToValidate="GridView1" Display="None" CssClass="DDValidator" />
        <table border="0" class="SRSFilterLabel">
            <tr>
                <asp:QueryableFilterRepeater runat="server" ID="FilterRepeater">
                    <ItemTemplate>
                        <td>&nbsp;</td>
                        <td>
                            <asp:DynamicFilter runat="server" ID="DynamicFilter" OnFilterChanged="DynamicFilter_FilterChanged" Visible="True" />
                        </td>
                    </ItemTemplate>
                </asp:QueryableFilterRepeater>
            </tr>
        </table>
    </div>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:GridView ID="GridView1" runat="server" DataSourceID="GridDataSource" EnablePersistedSelection="true"
                AllowPaging="True" AllowSorting="True" CssClass="DDGridView"
                RowStyle-CssClass="td" HeaderStyle-CssClass="th" CellPadding="6" PageSize="25" PagerSettings-PageButtonCount="25">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                           <asp:DynamicHyperLink runat="server" Text="Details" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:DynamicField runat="server" DataField="Request_ID" HeaderText="Request ID" ReadOnly="True" />
                    <asp:DynamicField runat="server" DataField="Submitted" HeaderText="Submitted" ReadOnly="True" />
                </Columns>
                <PagerStyle CssClass="DDFooter"/>        
                <PagerTemplate>
                    <asp:GridViewPager runat="server" />
                </PagerTemplate>
                <EmptyDataTemplate>
                    There are currently no items in this table.
                </EmptyDataTemplate>
            </asp:GridView>
            <asp:EntityDataSource ID="GridDataSource" runat="server" EnableDelete="true" />
            <asp:QueryExtender TargetControlID="GridDataSource" ID="GridQueryExtender" runat="server">
                <asp:DynamicFilterExpression ControlID="FilterRepeater" />
            </asp:QueryExtender>
            <!-- <asp:DynamicHyperLink ID="InsertHyperLink" runat="server" Action="Insert" CssClass="SRSInsertHyperLink" SkinID="SRSInsertHyperLink">Insert new item</asp:DynamicHyperLink> -->
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

